package com.xh.bussiness.teachbook.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * <p>
 * 教案讲义模块表
 * </p>
 *
 * @author daiwei
 * @since 2019-02-25
 */
@Data
@Accessors(chain = true)
@TableName("bk_teaching_book_module")
public class TeachingBookModule extends Model<TeachingBookModule> {


    /**
     * 主键ID , 这里故意演示注解可以无
     */
    @TableId(value = "id",type = IdType.UUID)
    private String id;

    /**
     * 备课/讲义id
     */
    private String teachingBookId;

    /**
     * 讲义模块id
     */
    private String teachingBookModuleId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
